package com.hyt.it.ogt.ykcj.domain.vo;

import java.math.BigDecimal;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author gaokx
 * @Descriptio 成绩分析按科目
 * @create 2021-11-02 15:03
 **/
public class ServantGradeSubjectAnalysisVo {

  /**
   * 题型信息
   */
  public List<ServantGradeSubjectStem> examStemInfo ;
  /**
   * 机构得分分组信息
   */
  public List<ServantGradeSubjectAnalysisItem> jgcjInfo ;

  public List<ServantGradeSubjectStem> getExamStemInfo() {
    return examStemInfo;
  }

  public void setExamStemInfo(
          List<ServantGradeSubjectStem> examStemInfo) {
    this.examStemInfo = examStemInfo;
  }

  public List<ServantGradeSubjectAnalysisItem> getJgcjInfo() {
    return jgcjInfo;
  }

  public void setJgcjInfo(
          List<ServantGradeSubjectAnalysisItem> jgcjInfo) {
    this.jgcjInfo = jgcjInfo;
  }

  /**
   * 试题题型信息
   */
  public static class ServantGradeSubjectStem {
    /** 题目数量 */
    private Integer titleNumber;

    /** 题目总分 */
    private BigDecimal totalPoints;

    private String  examStemId;
    private String  examStemName ;
    /**
     * 总平均分
     */
    private BigDecimal avgScore = BigDecimal.ZERO;

    /**
     * 男平均分
     */
    private BigDecimal maleAvgScore = BigDecimal.ZERO;

    /**
     * 女平均分
     */
    private BigDecimal femaleAvgScore = BigDecimal.ZERO;

    /**
     * 总正确率
     */
    private BigDecimal rightRate = BigDecimal.ZERO;
    /**
     * 男正确率
     */
    private BigDecimal maleRightRate = BigDecimal.ZERO;
    /**
     * 女正确率
     */
    private BigDecimal femaleRightRate = BigDecimal.ZERO;

    public BigDecimal getRightRate() {
      return rightRate;
    }

    public void setRightRate(BigDecimal rightRate) {
      this.rightRate = rightRate;
    }

    public BigDecimal getMaleRightRate() {
      return maleRightRate;
    }

    public void setMaleRightRate(BigDecimal maleRightRate) {
      this.maleRightRate = maleRightRate;
    }

    public BigDecimal getFemaleRightRate() {
      return femaleRightRate;
    }

    public void setFemaleRightRate(BigDecimal femaleRightRate) {
      this.femaleRightRate = femaleRightRate;
    }

    public BigDecimal getAvgScore() {
      return avgScore;
    }

    public void setAvgScore(BigDecimal avgScore) {
      this.avgScore = avgScore;
    }

    public BigDecimal getMaleAvgScore() {
      return maleAvgScore;
    }

    public void setMaleAvgScore(BigDecimal maleAvgScore) {
      this.maleAvgScore = maleAvgScore;
    }

    public BigDecimal getFemaleAvgScore() {
      return femaleAvgScore;
    }

    public void setFemaleAvgScore(BigDecimal femaleAvgScore) {
      this.femaleAvgScore = femaleAvgScore;
    }

    public Integer getTitleNumber() {
      return titleNumber;
    }

    public void setTitleNumber(Integer titleNumber) {
      this.titleNumber = titleNumber;
    }

    public BigDecimal getTotalPoints() {
      return totalPoints;
    }

    public void setTotalPoints(BigDecimal totalPoints) {
      this.totalPoints = totalPoints;
    }

    public String getExamStemId() {
      return examStemId;
    }

    public void setExamStemId(String examStemId) {
      this.examStemId = examStemId;
    }

    public String getExamStemName() {
      return examStemName;
    }

    public void setExamStemName(String examStemName) {
      this.examStemName = examStemName;
    }
  }


  /**
   * 层级题型得分信息
   */
  public static class ServantGradeSubjectAnalysisItem {

    String positionTier ;

    String positionTierName ;

    Map<String,List> groups = new LinkedHashMap<>();

    public Map<String, List> getGroups() {
      return groups;
    }

    public void setGroups(Map<String, List> groups) {
      this.groups = groups;
    }

    public String getPositionTier() {
      return positionTier;
    }

    public void setPositionTier(String positionTier) {
      this.positionTier = positionTier;
    }

    public String getPositionTierName() {
      return positionTierName;
    }

    public void setPositionTierName(String positionTierName) {
      this.positionTierName = positionTierName;
    }
  }

}

